<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>首页三</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="/lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
    <link rel="stylesheet" href="/css/public.css" media="all">
    <style>
        .layui-card {
            border: 1px solid #f2f2f2;
            border-radius: 5px;
        }

        .icon {
            margin-right: 10px;
            color: #1aa094;
        }

        .icon-cray {
            color: #ffb800 !important;
        }

        .icon-blue {
            color: #1e9fff !important;
        }

        .icon-tip {
            color: #ff5722 !important;
        }

        .layuimini-qiuck-module {
            text-align: center;
            margin-top: 10px
        }

        .layuimini-qiuck-module a i {
            display: inline-block;
            width: 100%;
            height: 60px;
            line-height: 60px;
            text-align: center;
            border-radius: 2px;
            font-size: 30px;
            background-color: #F8F8F8;
            color: #333;
            transition: all .3s;
            -webkit-transition: all .3s;
        }

        .layuimini-qiuck-module a cite {
            position: relative;
            top: 2px;
            display: block;
            color: #666;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            font-size: 14px;
        }

        .welcome-module {
            width: 100%;
            height: 210px;
        }

        .panel {
            background-color: #fff;
            border: 1px solid transparent;
            border-radius: 3px;
            -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
            box-shadow: 0 1px 1px rgba(0, 0, 0, .05)
        }

        .panel-body {
            padding: 10px
        }

        .panel-title {
            margin-top: 0;
            margin-bottom: 0;
            font-size: 12px;
            color: inherit
        }

        .label {
            display: inline;
            padding: .2em .6em .3em;
            font-size: 75%;
            font-weight: 700;
            line-height: 1;
            color: #fff;
            text-align: center;
            white-space: nowrap;
            vertical-align: baseline;
            border-radius: .25em;
            margin-top: .3em;
        }

        .layui-red {
            color: red
        }

        .main_btn>p {
            height: 40px;
        }

        .layui-bg-number {
            background-color: #F8F8F8;
        }

        .layuimini-notice:hover {
            background: #f6f6f6;
        }

        .layuimini-notice {
            padding: 7px 16px;
            clear: both;
            font-size: 12px !important;
            cursor: pointer;
            position: relative;
            transition: background 0.2s ease-in-out;
        }

        .layuimini-notice-title,
        .layuimini-notice-label {
            padding-right: 70px !important;
            text-overflow: ellipsis !important;
            overflow: hidden !important;
            white-space: nowrap !important;
        }

        .layuimini-notice-title {
            line-height: 28px;
            font-size: 14px;
        }

        .layuimini-notice-extra {
            position: absolute;
            top: 50%;
            margin-top: -8px;
            right: 16px;
            display: inline-block;
            height: 16px;
            color: #999;
        }

        .grid-demo {

            text-align: center;
            color: #FFFFFF;
            font-weight: bold;
        }

        .grid-demo-bg1 {
            background-color: #ff5722;
        }

        .grid-demo-bg2 {
            background-color: #ffb800;
        }

        .grid-demo-bg3 {
            background-color: #16b777;
        }

        .grid-demo-bg4 {
            background-color: #31bdec;
        }

        .top-panel {

            border-radius: 5px;
            text-align: center;
        }

        .top-panel-number {
            font-size: 24px;
            font-weight: bold;
            color: #1e9fff;
        }

        .top-panel-tips {
            font-size: 14px;
            line-height: 30px;
        }
    </style>
</head>

<body>
    <div class="layuimini-main">

        <div class="layui-row">
            <div class="layui-col-xs4 layui-col-md3">
                <div class="layui-panel" style="margin-right: 10px;">
                    <ul class="layui-menu" id="demo-menu">
                        <li class="layui-menu-item-group layui-menu-item-down" lay-options="{type: 'group'}">
                            <div class="layui-menu-body-title">
                                站点列表
                            </div>
                            <ul>
                                <li lay-options="{id: 103}">
                                    <div class="layui-menu-body-title">海淀区1*站点</div>
                                </li>
                                <li lay-options="{id: 103}">
                                    <div class="layui-menu-body-title">海淀区1*站点</div>
                                </li>
                                <li lay-options="{id: 103}">
                                    <div class="layui-menu-body-title">海淀区1*站点</div>
                                </li>
                                <li lay-options="{id: 103}">
                                    <div class="layui-menu-body-title">海淀区1*站点</div>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="layui-col-xs8 layui-col-md9" style="background-color: #FFFFFF;">
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
                    <legend>海淀区1*站点</legend>
                </fieldset>
                <div class="layui-card">
                    <div class="layui-card-header"><i class="fa fa-warning icon"></i>充电价格</div>
                    <div class="layui-card-body">
                        <div class="layui-row layui-col-space10">
                            <div class="layui-col-xs3">
                                <div class="panel layui-bg-number">
                                    <div class="panel-body">
                                        <div class="panel-title">
                                            <span class="label pull-right layui-bg-blue">尖</span>
                                        </div>
                                        <div class="panel-content">
                                            <h1 class="no-margins">0.9834</h1>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-xs3">
                                <div class="panel layui-bg-number">
                                    <div class="panel-body">
                                        <div class="panel-title">
                                            <span class="label pull-right layui-bg-cyan">峰</span>
                                        </div>
                                        <div class="panel-content">
                                            <h1 class="no-margins">1.3453</h1>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-xs3">
                                <div class="panel layui-bg-number">
                                    <div class="panel-body">
                                        <div class="panel-title">
                                            <span class="label pull-right layui-bg-orange">平</span>
                                        </div>
                                        <div class="panel-content">
                                            <h1 class="no-margins">1.3453</h1>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-xs3">
                                <div class="panel layui-bg-number">
                                    <div class="panel-body">
                                        <div class="panel-title">
                                            <span class="label pull-right layui-bg-green">谷</span>
                                        </div>
                                        <div class="panel-content">
                                            <h1 class="no-margins">1.3453</h1>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-row layui-col-space2">
                    <div class="layui-col-md1">
                        <div class="grid-demo grid-demo-bg1">0</div>
                    </div>
                    <div class="layui-col-md1">
                        <div class="grid-demo grid-demo-bg1">2</div>
                    </div>
                    <div class="layui-col-md1">
                        <div class="grid-demo grid-demo-bg1">4</div>
                    </div>
                    <div class="layui-col-md1">
                        <div class="grid-demo grid-demo-bg1">6</div>
                    </div>
                    <div class="layui-col-md1">
                        <div class="grid-demo grid-demo-bg2">8</div>
                    </div>
                    <div class="layui-col-md1">
                        <div class="grid-demo grid-demo-bg2">10</div>
                    </div>
                    <div class="layui-col-md1">
                        <div class="grid-demo grid-demo-bg3">12</div>
                    </div>
                    <div class="layui-col-md1">
                        <div class="grid-demo grid-demo-bg3">14</div>
                    </div>
                    <div class="layui-col-md1">
                        <div class="grid-demo grid-demo-bg1">16</div>
                    </div>
                    <div class="layui-col-md1">
                        <div class="grid-demo grid-demo-bg3">18</div>
                    </div>
                    <div class="layui-col-md1">
                        <div class="grid-demo grid-demo-bg1">20</div>
                    </div>
                    <div class="layui-col-md1">
                        <div class="grid-demo grid-demo-bg3">22</div>
                    </div>
                </div>
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
                    <legend>数据统计</legend>
                </fieldset>
                <form class="layui-form" action="">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">周期选择</label>
                            <div class="layui-input-inline">
                                <select name="modules" lay-verify="required" lay-search="">
                                    <option value="1">年</option>
                                    <option value="2">月</option>
                                    <option value="3">日</option>
                                    <option value="3">自定义</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">日期范围</label>
                            <div class="layui-inline" id="test6">
                                <div class="layui-input-inline">
                                    <input type="text" autocomplete="off" id="test-startDate-1" class="layui-input"
                                        placeholder="开始日期">
                                </div>
                                <div class="layui-form-mid">-</div>
                                <div class="layui-input-inline">
                                    <input type="text" autocomplete="off" id="test-endDate-1" class="layui-input"
                                        placeholder="结束日期">
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
                <div class="layui-row layui-col-space15">
                    <div class="layui-col-xs12 layui-col-md2">
                        <div class="layui-card top-panel">
                            <div class="top-panel-tips">充电量</div>
                            <div class="layui-card-body">
                                <div class="layui-row layui-col-space5">
                                    <div class="panel-title">
                                        <span class="label pull-right layui-bg-blue">度</span>
                                    </div>
                                    <div class="top-panel-number">
                                        9,054
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="layui-col-xs12 layui-col-md2">

                        <div class="layui-card top-panel">
                            <div class="top-panel-tips">订单总额</div>
                            <div class="layui-card-body">
                                <div class="layui-row layui-col-space5">
                                    <div class="panel-title">
                                        <span class="label pull-right layui-bg-blue">元</span>
                                    </div>
                                    <div class=" top-panel-number">
                                        9,054,0
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="layui-col-xs12 layui-col-md2">
                        <div class="layui-card top-panel">
                            <div class="top-panel-tips">服务费总额</div>
                            <div class="layui-card-body">
                                <div class="layui-row layui-col-space5">
                                    <div class="panel-title">
                                        <span class="label pull-right layui-bg-blue">元</span>
                                    </div>
                                    <div class="top-panel-number">
                                        9,054,0
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="layui-col-xs12 layui-col-md2">
                        <div class="layui-card top-panel">
                            <div class="top-panel-tips">订单数量</div>
                            <div class="layui-card-body">
                                <div class="layui-row layui-col-space5">
                                    <div class="panel-title">
                                        <span class="label pull-right layui-bg-blue">单</span>
                                    </div>
                                    <div class="top-panel-number">
                                        9,054,0
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="layui-col-xs12 layui-col-md2">
                        <div class="layui-card top-panel">
                            <div class="top-panel-tips">平均客单价</div>
                            <div class="layui-card-body">
                                <div class="layui-row layui-col-space5">
                                    <div class="panel-title">
                                        <span class="label pull-right layui-bg-blue">元</span>
                                    </div>
                                    <div class="top-panel-number">
                                        9,054,0
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="layui-col-xs12 layui-col-md2">
                        <div class="layui-card top-panel">
                            <div class="top-panel-tips">充电时长</div>
                            <div class="layui-card-body">
                                <div class="layui-row layui-col-space5">
                                    <div class="panel-title">
                                        <span class="label pull-right layui-bg-blue">分钟</span>
                                    </div>
                                    <div class="top-panel-number">
                                        9,054,0
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-row layui-col-space15">
                    <div class="layui-col-xs12 layui-col-md8">
                        <div id="echarts-records" style="background-color:#ffffff;min-height:400px;padding: 10px"></div>
                    </div>
                    <div class="layui-col-xs12 layui-col-md4">
                        <div id="echarts-pies" style="background-color:#ffffff;min-height:400px;padding: 10px"></div>
                    </div>
                </div>
                <div class="layui-row layui-col-space15">
                    <div class="layui-col-xs12 layui-col-md6">
                        <div id="echarts-records-order" style="background-color:#ffffff;min-height:400px;padding: 10px">
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-md6">
                        <div id="echarts-records-order2"
                            style="background-color:#ffffff;min-height:400px;padding: 10px">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>

<!-- 注意：项目正式环境请勿引用该地址 -->
<script src="//www.layuicdn.com/layui-v2.7.6/layui.js"></script>
<script src="/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="/js/lay-config.js?v=1.0.4" charset="utf-8"></script>

<script>
    layui.use(['form', 'util', 'laydate', 'echarts'], function () {
        var form = layui.form;
        var layer = layui.layer;
        var util = layui.util;
        var laydate = layui.laydate;
        var echarts = layui.echarts;

        //日期
        laydate.render({
            elem: '#date'
        });
        laydate.render({
            elem: '#date1'
        });

        //日期范围
        laydate.render({
            elem: '#test6'
            //设置开始日期、日期日期的 input 选择器
            //数组格式为 2.6.6 开始新增，之前版本直接配置 true 或任意分割字符即可
            , range: ['#test-startDate-1', '#test-endDate-1']
        });
        /**
                    * 报表功能
                    */
        var echartsRecords = echarts.init(document.getElementById('echarts-records'), 'walden');

        var optionRecords = {
            title: {
                text: '收益分析'
            },
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'cross',
                    label: {
                        backgroundColor: '#6a7985'
                    }
                }
            },
            legend: {
                data: ['电费', '服务费']
            },
            toolbox: {
                feature: {
                    saveAsImage: {}
                }
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: [
                {
                    type: 'category',
                    boundaryGap: false,
                    data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '电费',
                    type: 'line',
                    stack: '总量',
                    areaStyle: {},
                    data: [120, 132, 101, 134, 90, 230, 210]
                },
                {
                    name: '服务费',
                    type: 'line',
                    areaStyle: {},
                    data: [220, 182, 191, 234, 290, 330, 310]
                }
            ]
        };
        echartsRecords.setOption(optionRecords);

        /**
             * 玫瑰图表
             */
        var echartsPies = echarts.init(document.getElementById('echarts-pies'), 'walden');
        var optionPies = {
            title: {
                text: '客单价占比',
                left: 'center'
            },
            tooltip: {
                trigger: 'item',
                formatter: '{a} <br/>{b} : {c} ({d}%)'
            },
            legend: {
                orient: 'vertical',
                left: 'left',
                data: ['0-10元', '10-20元', '20-30元', '30-40元', '50以上']
            },
            series: [
                {
                    name: '访问来源',
                    type: 'pie',
                    radius: '55%',
                    center: ['50%', '60%'],
                    roseType: 'radius',
                    data: [
                        { value: 335, name: '0-10元' },
                        { value: 310, name: '10-20元' },
                        { value: 234, name: '20-30元' },
                        { value: 135, name: '30-40元' },
                        { value: 368, name: '50以上' }
                    ],
                    emphasis: {
                        itemStyle: {
                            shadowBlur: 10,
                            shadowOffsetX: 0,
                            shadowColor: 'rgba(0, 0, 0, 0.5)'
                        }
                    }
                }
            ]
        };
        echartsPies.setOption(optionPies);


        /**
             * 柱状图
             */
        var echartsRecordsOrder = echarts.init(document.getElementById('echarts-records-order'), 'walden');

        var optionRecordsOrder = {
            title: {
                text: '尖峰平谷'
            },
            legend: {},
            tooltip: {},
            dataset: {
                dimensions: ['product', '尖', '峰', '平', '谷'],
                source: [
                    { product: '周一', '尖': 43.3, '峰': 85.8, '平': 93.7, '谷': 39.1 },
                    { product: '周二', '尖': 83.1, '峰': 73.4, '平': 55.1, '谷': 39.1 },
                    { product: '周三', '尖': 86.4, '峰': 65.2, '平': 82.5, '谷': 39.1 },
                    { product: '周四', '尖': 86.4, '峰': 65.2, '平': 82.5, '谷': 39.1 },
                    { product: '周五', '尖': 86.4, '峰': 65.2, '平': 82.5, '谷': 39.1 },
                    { product: '周六', '尖': 86.4, '峰': 65.2, '平': 82.5, '谷': 39.1 },
                    { product: '周一', '尖': 72.4, '峰': 53.9, '平': 39.1, '谷': 39.1 }
                ]
            },
            xAxis: { type: 'category' },
            yAxis: {},
            // Declare several bar series, each will be mapped
            // to a column of dataset.source by default.
            series: [
                { type: 'bar' },
                { type: 'bar' },
                { type: 'bar' },
                { type: 'bar' }
            ]
        };

        echartsRecordsOrder.setOption(optionRecordsOrder);

        /**
           * 柱状图
           */
        var echartsRecordsOrder2 = echarts.init(document.getElementById('echarts-records-order2'), 'walden');

        var optionRecordsOrder2 = {
            title: {
                text: '订单量'
            },
            legend: {},
            tooltip: {},
            dataset: {
                dimensions: ['product', 'order'],
                source: [
                    { product: '周一', 'order': 43.3 },
                    { product: '周二', 'order': 83.1 },
                    { product: '周三', 'order': 86.4 },
                    { product: '周四', 'order': 86.4 },
                    { product: '周五', 'order': 86.4 },
                    { product: '周六', 'order': 86.4 },
                    { product: '周一', 'order': 72.4 }
                ]
            },
            xAxis: { type: 'category' },
            yAxis: {},
            // Declare several bar series, each will be mapped
            // to a column of dataset.source by default.
            series: [
                { type: 'bar' }
            ]
        };

        echartsRecordsOrder2.setOption(optionRecordsOrder2);

    });
</script>

</html>